package com.lifesting.front;

import javax.faces.component.UIComponent;
import javax.faces.event.FacesEvent;
import javax.faces.event.FacesListener;
/**
 * 表格页码改变事件
 * @author david
 *
 */
public class PageChangeEvent extends FacesEvent {

	private static final long serialVersionUID = -3864241594630616366L;
	//表格将会显示的页码
	private Integer pageNumber;
	
	public PageChangeEvent(UIComponent component) {
		super(component);
	}

	@Override
	public boolean isAppropriateListener(FacesListener listener) {
		return (listener instanceof Table.PageChangeListener);
	}

	@Override
	public void processListener(FacesListener listener) {

	}

	public void setPageNumber(Integer pageNumber) {
		this.pageNumber = pageNumber;
	}

	public Integer getPageNumber() {
		return pageNumber;
	}

}
